<template>
    <div class="timer-container">
        <div class="t-left">
            <div class="t-left-item">
                <router-link to="/timer/timerbuild">
                    <Icon>
                        <AddSquare24Filled />
                    </Icon>
                    <span class="item-text">新建</span>
                </router-link>
            </div>
            <div class="t-left-item">
                <router-link to="/timer/timerhistory">
                    <Icon>
                        <History16Filled />
                    </Icon>
                    <span class="item-text">历史</span>
                </router-link>
            </div>

            <div class="hrStyle"></div>

            <div class="t-left-item">
                <router-link to="/timer/timeranalyse">
                    <Icon>
                        <DataArea24Filled />
                    </Icon>
                    <span class="item-text">统计分析</span>
                </router-link>
            </div>
            <div class="t-left-item">
                <router-link to="/timer/timerachieve">
                    <Icon>
                        <ArrowSyncCheckmark24Filled />
                    </Icon>
                    <span class="item-text">已完成</span>
                </router-link>
            </div>
            <div class="t-left-item">
                <router-link to="/timer/timernotachieve">
                    <Icon>
                        <CalendarCancel24Filled />
                    </Icon>
                    <span class="item-text">已放弃</span>
                </router-link>
            </div>
        </div>
        <div class="t-right">
            <router-view />
        </div>
    </div>
</template>

<script>
import { AddSquare24Filled, History16Filled, DataArea24Filled, ArrowSyncCheckmark24Filled, CalendarCancel24Filled } from '@v2icons/fluent'

import { Icon } from '@v2icons/utils'
export default {
    name: 'Timer',

    data() {
        return {

        };
    },

    mounted() {

    },

    methods: {

    },
    components: {
        Icon,
        AddSquare24Filled,
        History16Filled,
        DataArea24Filled,
        ArrowSyncCheckmark24Filled,
        CalendarCancel24Filled
    }
};
</script>

<style lang="less" scoped>
.timer-container {
    width: 100%;
    height: 100%;
    display: flex;

    .t-left {
        flex: 1;
        padding: 10px;
        border-right: 1px rgb(234, 234, 234) solid;

        .t-left-item {
            width: 100%;

            .timer-tab-active {
                background-color: lighten(@mainColor, 30%);

                &:hover {
                    background-color: lighten(@mainColor, 30%);
                }
            }

            a {
                display: flex;
                align-items: center;
                width: 100%;
                padding: 10px 13px;
                color: rgb(194, 191, 191);
                font-size: 20px;
                border-radius: 6px;

                &:hover {
                    background-color: lighten(@mainColor, 34%);
                }

                .item-text {
                    margin-left: 10px;
                    font-size: 13px;
                    color: rgb(94, 94, 94);
                }
            }


        }

        .hrStyle {
            width: 100%;
            height: 1px;
            background-color: rgb(238, 238, 238);
            margin: 10px 0;
        }
    }

    .t-right {
        flex: 5;
        height: 100%;
        overflow-y: scroll;
    }
}
</style>